class Photo {
    String title
    byte[] photo
    int hot;
    Date publishTime = new Date();
    static constraints = {
        title(size: 1..200, blank: false);
        photo(blank: false);
        hot(blank: false);
        publishTime(blank: false);
    }
    String toString() {
        "$title"
    }
}
